package com.itheima.io.reader.demo03;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class FileReaderDemo01 {

    public static void main(String[] args) throws IOException {

        Reader reader = new FileReader("itheima-io-reader\\a.txt");

        char[] chs = new char[1024];
        int len = -1;
        while ((len = reader.read(chs)) != -1) {
            System.out.println(new String(chs, 0, len));
        }

        reader.close();

    }

}
